package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.Admin;
import com.zimmur.app.mocolink.domain.model.AdminExample;
import com.zimmur.app.mocolink.domain.param.AdminParam;
import com.zimmur.app.mocolink.domain.vo.AdminInfo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper extends BaseMapper<Admin> {
    int countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    List<Admin> selectByExample(AdminExample example);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    /**
     * 条件查询
     *@Description
     *@param param
     *@return 
     *@author zcx
     *@Time 2017年10月31日 下午2:56:37
     */
    List<AdminInfo> selectByParam(AdminParam param);
    /**
     * 条件统计
     *@Description
     *@param param
     *@return 
     *@author zcx
     *@Time 2017年10月31日 下午2:57:11
     */
    int countByParam(AdminParam param);
}